import pyautogui
import pydirectinput
import time, datetime
import ctypes, sys

escortPlace = 1 # 0:东岳；1:杭州；2:开封；3:徐海
escortType = 1 # 0:银两镖；1:碎银镖

choice_dongyue = {0:(1486,2479), 1:(591,3168), 2:(584,3174)}
choice_hangzhou = {0:(1173,2455), 1:(2243,2651), 2:(2235,2652)}
choice_kaifeng = {0:(1842,488), 1:(1038,1428), 2:(1030,1424)}
choice_xuhai = {0:(1582,2405), 1:(2338,1720), 2:(2339,1712)}
choice_place = {0:choice_dongyue, 1:choice_hangzhou, 2:choice_kaifeng, 3:choice_xuhai}

def getWhereGo():
    if(escortType):
        return choice_place[escortPlace][2]
    else:
        return choice_place[escortPlace][1]

def autoRide():
    print("start")
    pyautogui.keyDown('shift')
    pyautogui.press('w')
    pyautogui.keyUp('shift')
    print("end")
    time.sleep(1)
    print("start")
    
    #pyautogui.hotkey('ctrl', 'v')
    print("end")




if __name__ == '__main__':
    print(datetime.datetime.now().strftime('%S'))